package com.refactor.practice.strategy;

public class RegularChargeStrategy implements IStrategy {
    @Override
    public double getChargeAmt(int dayRented) {
        double chargeAmt = 2;
        if(dayRented > 2) {
            chargeAmt += (dayRented - 2) * 1.5;
        }
        return chargeAmt;
    }
}
